package com.example.demo.service;

import com.example.demo.entity.Cart;
import com.example.demo.entity.OrderCustom;
import com.example.demo.entity.Orders;
import com.example.demo.entity.User;
import com.example.demo.pay.PayContext;
import com.example.demo.pojo.BSResult;

import java.util.List;

public interface OrderService {


    BSResult createOrder(User orderUser,Cart cart,String express,Integer payMethod);

    List<OrderCustom> findAllOrdersByUserId(Integer userId);

    int deleteOrdersByOrderId(String orderId);

    int updateOrders(Orders order);

    BSResult findOrdersByOrderId(String orderId);

    BSResult updateOrdersAfterPay(PayContext payContext);

}
